import sitemap from './static/sitemap';

export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  server:{
  	host:'0.0.0.0',
  	 port:3002
  },
  head: {
    title: '胡兴龙-个人博客网站',
    htmlAttrs: {
      lang: 'zh'
    },
    meta: [
      { charset: 'utf-8' },
	    {name:'baidu-site-verification',content:'code-v4P3qMzsn3'},
      { name: 'viewport', content: 'width=device-width, initial-scale=1,maxinum-scale=1,mininum-scale=1,user-scalable=no' },
	  {hid:'description',name:'description',content:"胡兴龙个人博客网站,作者是一个热爱前端的前端小白,喜欢各种炫酷的前端特效,同时注重用户体验与高性能的JavaScript编程,对于seo也有一定的了解"},
	  {hid:'keywords',name:'keywords',content:'个人博客,前端技术,js技术,seo技术,学习交流'}
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [

  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
	  '~/api/test.js',
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
  ],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
  	  '@nuxtjs/axios',
	  '@nuxtjs/sitemap',
  ],
	sitemap:sitemap,
	axios:{
  	    proxy:true,
		prefix:'/api'
	},
	proxy:{
  	    '/api':{
  	    	target:'http://localhost:3000',
	        //target:'http://121.199.14.243:3000',
	        // pathRewrite:{
  	    	// 	'^/api':''
	        // }
        }
	},
	render: {
		resourceHints: false,
	},
  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
  }
}
